package com.woohua.thread.create;

/***
 * @title ThreadDemo
 * @description: 继承Thread类
 * @author woo hua
 * @version 1.0.0
 * @create 2023/3/9 11:34
 **/
public class ThreadDemo extends Thread {

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }

    public static void main(String[] args) {
        new ThreadDemo().start();
    }
}
